
#include <Rectangle.h>

Rectangle::Rectangle(unsigned int length, unsigned int width)
    : _length(length),
      _width(width)
{
}

unsigned int Rectangle::getArea() const
{
	return _length * _width;
}

unsigned int Rectangle::getPerimeter() const
{
	return (_length + _width) * 2;
}

void Rectangle::setLength(unsigned int length)
{
    _length = length;
}

void Rectangle::setWidth(unsigned int width)
{
	_width = width;
}